<!DOCTYPE html>
<html>
    <head>
    <title>successfulmatch</title>
    <meta http-equiv=Content-Type content="text/html" charset='utf-8'>
    </head>
<body>
</body>
    <script src="package/components/seajs/2.3.0/sea.js"></script>
    <script src="package/components/seajs/2.3.0/seajs-css.js"></script>
    <script src="package/components/seajs/2.3.0/seajs-text.js"></script>     
    <script src="package/components/jquery/1.11.1/jquery.js"></script>     
    <script>
    var engine = 'smdata', domain;

    if (location.href.indexOf("?dev") > 0) {
        domain = 'http://www.smdata.com/';
    } else {
        domain = 'http://smdata.successfulmatch.com/';
    }

    seajs.config({
        alias: { 
            "underscore": "underscore/1.7.0/underscore.js",
            "backbone": "backbone/1.1.2/backbone.js",
            "util": "util/util.js",
            "share": "util/share.js",
            "ztree": "ztree/3.5.0/jquery.ztree.all-3.5.js", 
            "highcharts": "highcharts/4.0.4/highcharts.js",
            "bootstrap": "bootstrap/3.3.0/js/bootstrap.min.js",
            "date": "date/Pikaday/pikaday.js",   
        },

        preload: [],

        paths: {},

        vars: {
            'resourceUrl': domain+'package/resource/',
            'apiUrl': domain+'apis/',
            'view': domain+'view/',
            'model': domain+'model/',
            'controller': domain+'controller/',
            //'apiAccessUrl': domain+'/apis/'+getCookie('session_id')+'/'
        },

        'map': [
                [/^(.*\.(?:css|js))(.*)$/i, '$1?v='+Math.random()]
                //[/^(.*\.(?:css|js))(.*)$/i, '$1?v=1.0']
        ],

        debug: true,

        base: domain+'package/components/',

        charset: 'utf-8'
    });

    seajs.use(['./app'],function(app){
        $(function() {app.init()});
    })
    </script>
</html>
